#import "NSDictionary+SMRAdditions.h"


@implementation NSDictionary (SMRAdditions)

-(id)smrKeyForObject:(id)object {
    NSArray *keys = [self allKeys];
    for (id key in keys) {
        id dictionaryObject = [self objectForKey:key];
        if (dictionaryObject == object)
            return key;
    }
    return nil;
}

@end
